package com.learn.project.annotation;

import com.learn.project.enums.DBTypeEnum;

import java.lang.annotation.*;

/**
 * @author lijiajun
 * @date 2023/11/21
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD, ElementType.TYPE})
public @interface DataSourceSelector {
    /**
     * 指定的数据源
     *
     * @return DBTypeEnum 数据源
     */
    DBTypeEnum value() default DBTypeEnum.Master;
}
